<script setup lang="ts">
 import { useRouter } from "vue-router";
  const router = useRouter();
function handleGo() {
    router.push("/records");
  }
  </script>

<template>
  <div class="flex flex-col w-full h-[100vh] bg-red-400 overflow-auto bg-cover bg-center"  :style="{ backgroundImage: `url(${getAssetsImageUrl('red_bg.jpg')})` }">
    <div class="w-full h-46 px-5 flex flex-col pt-3">
      <div class="flex items-center h-12 justify-between">
        <img :src="getAssetsImageUrl('scan.png')" alt="" class="w-6 h-6" />
        <div class="border border-light-100 border-opacity-20 h-8 flex-1 rounded-2xl ml-6 p-2 flex items-center">
          <img :src="getAssetsImageUrl('search.png')" alt="" class="w-6 h-6" />
        </div>
        <img :src="getAssetsImageUrl('kf.png')" alt="" class="w-6 h-6 ml-6" />
        <div class="relative flex -top-.5">
          <img :src="getAssetsImageUrl('message_99.png')" alt="" class="w-8 h-8 ml-6" />
        </div>
      </div>
      <div class="flex-1 grid grid-cols-4 gap-8 pt-5">
        <div class="flex flex-col items-center">
          <img :src="getAssetsImageUrl('tp1.png')" alt="" class="w-12 h-12" />
          <div class="font-bold text-sm text-white">朝朝宝</div>
        </div>
        <div class="flex flex-col items-center" @click="handleGo">
          <img :src="getAssetsImageUrl('tp2.png')" alt="" class="w-12 h-12" />
          <div class="font-bold text-sm text-white">收支明细</div>
        </div>
        <div class="flex flex-col items-center">
          <img :src="getAssetsImageUrl('tp3.png')" alt="" class="w-12 h-12" />
          <div class="font-bold text-sm text-white">转账</div>
        </div>
        <div class="flex flex-col items-center">
          <img :src="getAssetsImageUrl('tp4.png')" alt="" class="w-12 h-12" />
          <div class="font-bold text-sm text-white">账户总览</div>
        </div>
      </div>
    </div>

    <div
      class="flex-1 mt-4 bg-gradient-to-b from-white from-25% via-[#FDFDFD] via-20% to-[#F8F8F8] to-55% rounded-t-lg"
    >
      <div class="h-42 w-full flex flex-col pt-6 px-3">
        <div class="flex-1 grid grid-cols-5 gap-3">
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('xyk.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">申请信用卡</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('thkzr.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">他行卡转入</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('jq.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">借钱</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('cs.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">城市服务</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('rm.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">热门活动</div>
          </div>
        </div>
        <div class="flex-1 grid grid-cols-5 gap-3">
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('yl.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">养老金融</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('tj.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">推荐有礼</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('wddk.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">我的贷款</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('yhk.jpg')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">银行卡</div>
          </div>
          <div class="flex flex-col items-center">
            <img :src="getAssetsImageUrl('qb.png')" alt="" class="w-8 h-8" />
            <div class="font-bold text-xs">全部</div>
          </div>
        </div>
      </div>
      <div class="w-full flex items-center h-8 px-5">
        <img :src="getAssetsImageUrl('topic.png')"  alt="" class="w-16 h-8">
        <div class="ml-5 font-medium text-sm">小招有财: 账户全面保障待开启</div>
      </div>
      <div class="h-[calc(100vh-200px)] px-3 pt-5">
        <div
          class="h-24 w-full rounded-lg bg-cover bg-center"
          :style="{ backgroundImage: `url(${getAssetsImageUrl('gg.jpg')})` }"
        ></div>
        <div class="w-full h-44 mt-5 rounded-xl bg-white flex flex-col p-5">
          <div class="flex w-full items-start">
            <div class="font-bold">招联 ｜ 好期贷</div>
            <div class="text-sm font-normal text-gray-500 ml-2">按日计算，灵活周转</div>
          </div>
          <div class="mt-3 text-sm text-gray-400">(由招联消费金融有限公司提供)</div>
          <div class="mt-5 text-sm">最高可借额度</div>
          <div class="flex items-center w-full">
            <div class="flex-1 text-3xl text-red-500">200,000.00</div>
            <div class="w-24 rounded-3xl h-8 border-gray-300 border flex items-center justify-center">
              <span class="font-semibold">获取额度</span>
            </div>
          </div>
        </div>
        <div class="w-full h-8 flex mt-3">
          <div class="flex-1 h-full flex items-end text-xl font-bold">财富精选</div>
          <div class="text-md h-full text-gray-400 flex items-end">更多</div>
        </div>
        <div class="mt-3 h-60 w-full flex">
          <div class="flex-1 flex flex-col bg-[#FFF1E9] rounded-lg p-5">
            <div class="font-bold text-orange-500 text-xl">朝朝宝</div>
            <div class="text-sm">额度升至10万</div>
            <div class="text-red-500 mt-5 flex font-semibold items-end">
              <span class="text-2xl">2.25</span>
              <span class="text-lg">%</span>
            </div>
            <div class="text-red-500 text-sm">平均7日年化</div>
            <div class="mt-5">
              <div class="text-sm flex items-center">
                <span>满仓每日可享</span>
                <span class="text-red-500">6.16</span>
                <span>元</span>
              </div>
            </div>
            <div class="mt-2 w-20 h-10 bg-red-500 rounded-2xl flex items-center justify-center text-white">买一笔</div>
          </div>
          <div class="w-5 h-full"></div>
          <div class="flex-1 h-full flex flex-col">
            <div class="flex-1 bg-white rounded-lg flex flex-col p-3">
              <div class="flex items-start">
                <div class="font-medium text-xl">R1低风险</div>
                <span
                  class="ml-1 mt-1 w-7 h-4 border border-gray-400 text-xs text-center flex items-center text-gray-400 rounded-sm"
                >
                  代销
                </span>
              </div>
              <div class="text-xs">
                <span>月月宝</span>
                <span class="ml-1">和鼎30天持有1A</span>
              </div>
              <div class="mt-3 text-xs">
                <span>成立以来年化</span>
                <span class="text-lg text-red-500">2.75%</span>
              </div>
            </div>
            <div class="w-full h-5"></div>
            <div class="flex-1 bg-white rounded-lg flex flex-col p-3">
              <div class="flex items-start">
                <div class="font-medium text-xl">稳健低波</div>
                <span
                  class="ml-1 mt-1 w-7 h-4 border border-gray-400 text-xs text-center flex items-center text-gray-400 rounded-sm"
                >
                  代销
                </span>
              </div>
              <div class="text-xs">
                <span>阳光金天天盈D</span>
              </div>
              <div class="mt-3 text-xs">
                <span>成立以来年化</span>
                <span class="text-lg text-red-500">2.87%</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped></style>
